#!/usr/bin/node
//main-module
const Radio = require('./04-radio');

const station = {
    freq: '106.7',
    name: 'music radio'
};

var radio = new Radio(station);

radio.on('open', (station) => {
    console.log('"%s" FM %s opened', station.name, station.freq);
  
})
radio.on('stop', (station) => {
    console.log('"%s" FM %s closed', station.name, station.freq);
});

